package com.zzy.database.mapper;

import com.zzy.database.pojo.transaction;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface TransactionMapper {
    // 插入交易记录
    int insertTransaction(transaction transaction);

    // 更新账户余额
    int updateAccountBalance(int accountId, double amount);

    // 查询账户余额
    double getAccountBalance(int accountId);
}